/*
 * LocalServer.hpp
 *
 *  Created on: Nov 21, 2014
 *      Author: toti
 */

#ifndef LOCALSERVER_HPP_
#define LOCALSERVER_HPP_

#include <list>
#include <string>

#include <Connectivity/TCPConnection.hpp>
#include <Network/MessagePackages/MessagePackage.hpp>
#include <Network/MessagePackages/ServerMessagePackage.hpp>
#include <Network/MessagePackages/ClientMessagePackage.hpp>
#include <Network/LocalNode.hpp>


class NetworkDataContainer;

class LocalServer : public LocalNode{

enum LocalServerState{
	UNREGISTERED,
	REGISTERED
};

private:

	LocalServerState localServerState;


public:

	LocalServer(TCPConnection *tcpConnection);

	MessagePackage *buildPackage(std::string& input);

};


#endif /* LOCALSERVER_HPP_ */
